import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router'

import Index from '@/pages/index/Index.vue';
const routes:Array<RouteRecordRaw> = [
  {
    path:"/",
    redirect:"/index"
  },
  {
    path:"/index",
    component:Index,
    name:"首页"
  }
]

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})

export default router
